#pragma once

#include <QUuid>

#include <Type/News.h>

namespace PredefinedConstance
{
	class News
	{
		const int TEST_GROUP_ID = 100;
	public:
		News()
		{
			val2insert.groupId = groupId;
			val2insert.iconTitle = ".iconTitle";
			val2insert.iconColor = ".iconColor";
			val2insert.title = ".title";
			val2insert.author = ".author";
			val2insert.contentUrl = QString("http://tcres.oss-cn-shenzhen.aliyuncs.com/_contentUrl%1").arg(QUuid::createUuid().toString());

			val2update = val2insert;
			val2update.iconTitle = "fixed";
			val2update.iconColor = "fixed";
			val2update.title = "fixed";
			val2update.author = "fixed";
			val2update.contentUrl = "fixed";
		}
	public:
		int groupId = TEST_GROUP_ID;
		TCServer::Type::News val2insert;
		TCServer::Type::News val2update;
	};
}